<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>cinema-movie</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css\movie.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css\movie2.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css\common.css">
</head>
<body>
<header>
    <iframe src="${pageContext.request.contextPath}/top.jsp" frameborder="0" scrolling="no" id="top"></iframe>
</header>
<!--header end-->

    <div class="mian-cur-position2">
        <div class="cinema-movie">
            <img src="${movie.movieImg}">
            <ul>
                <li>导演：${movie.movieDirector}</li>
                <li>主演：${movie.movieProtagonist}</li>
                <li>类型：
                    <c:forEach items="${movie.movietemps}" var="m">
                        ${m.tempName}
                    </c:forEach>
                </li>
                <li>片长：${movie.movieTime}分钟</li>
                <li>剧情介绍：${movie.movieDescribe}</li>
            </ul>
        </div>
    </div>
    <div class="tab-list">选座购票</div>
    <div class="w-seat-wrapper">

        <!-- Hall Tabel-->
        <div class="center-wrap">
            <table class="hall-table">
                <thead>
                    <tr>
                        <th class="hall-time">放映时间</th>
                        <th class="hall-name">放映厅</th>
                        <th class="hall-flow">座位情况</th>
                        <th class="hall-price">现价/影院价（元）</th>
                        <th class="hall-buy">选座购票</th>
                    </tr>
                </thead>
                <tbody>
                <c:forEach items="${hall}" var="h">
                    <c:if test="${h.moviePrise != 0}">
                        <tr>
                            <td class="hall-time">
                                <em class="bold"><fmt:formatDate value="${h.beginDate}" pattern="yyyy-MM-dd"/></em>
                                预计<fmt:formatDate value="${h.beginDate}" pattern="HH:mm"/>散场
                            </td>
                            <td class="hall-name">
                                    ${h.hallName}
                            </td>
                            <td class="hall-flow">
                                <div class="flowing-wrap flowing-loose">
                                    <label> 宽松  </label>
                                    <span class="flowing-vol"><i style="width:0.0%"></i></span>
                                    <span class="flowing-view J_flowingView" data-scheduleid="879395115">
                                    <i class="icon-zoom"></i>
                                    <div class="view-wrap" style="display:none;">
                                        <div class="view-box">加载中...</div>
                                    </div>
                                </span>
                                </div>
                            </td>
                            <td class="hall-price" data-partcode="yueke">
                                <em class="now">${h.moviePrise}</em>
                                <del class="old">${h.moviePrise}</del>
                            </td>
                            <td class="hall-seat">
                                <a class="seat-btn" href="Seat?scheduleId=${h.scheduleId}">选座购票</a>
                            </td>
                        </tr>
                    </c:if>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>

<iframe src="${pageContext.request.contextPath}/foot.jsp" frameborder="0" scrolling="no" id="foot"></iframe>
</body>
</html>